import CourtBookingConfig from './CourtBookingConfig';
import { getCampuses } from '@/lib/campusService';
import { getCourts } from '@/lib/courtsService';
import { getBookableTimeblocks, createBookableTimeblocks, deleteBookableTimeblock, deleteOrderByBlockId } from '@/lib/courtBookingService';
export default async function CourtBookingConfigPage({ params }) {
  const campuses = await getCampuses({});
  const courts = await getCourts({});

  console.log("球场列表",courts);

  return (
    <CourtBookingConfig
      lang={params.lang}
      campuses={campuses}
      courts={courts}
      createBookableTimeblocks={createBookableTimeblocks}
      getBookableTimeblocks={getBookableTimeblocks}
      deleteBookableTimeblock={deleteBookableTimeblock}
      deleteOrderByBlockId={deleteOrderByBlockId}
    />
  );
}